/*
 * Copyright (c) 2009 Ted Bullock <tbullock@comlore.com>
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

/*
 * Note from Ted Bullock:
 *
 * This is an ISC licensed (stub) of gettext for Microsoft Windows
 * with the intention of making it easier to port software.  The GNU
 * implementation was found to be overly complex and combersome to
 * build on Windows as it seems to re-implement major portions of the C
 * runtime.
 *
 * This library is written against the gettext(3) manpage from openSUSE 11.1
 */

#pragma once

#ifdef __cplusplus
extern "C" {
#endif

#ifdef COMPILING_LIBINTL_H
#  define WGTEXT_DLL __declspec(dllexport)
#else
#  define WGTEXT_DLL __declspec(dllimport)
#endif

WGTEXT_DLL const char *gettext(const char*);
WGTEXT_DLL const char *dgettext(const char*, const char*);
WGTEXT_DLL const char *ngettext(const char*, const char*, unsigned int);
WGTEXT_DLL const char *dcgettext(const char*, const char*, int);
WGTEXT_DLL const char *textdomain(const char*);
WGTEXT_DLL const char *bindtextdomain(const char*, const char*);
WGTEXT_DLL const char *dngettext(const char*, const char*, const char*, unsigned int);
WGTEXT_DLL const char *dcngettext(const char*, const char*, const char*, unsigned int, int);
WGTEXT_DLL const char *bind_textdomain_codeset(const char*, const char *);

#undef WGTEXT_DLL

#ifdef __cplusplus
}
#endif